import request from '@/utils/request'

// 查询会议请假列表
export function listLeave (query) {
  return request({
    url: '/dynamics/leave/list',
    method: 'get',
    params: query
  })
}

// 查询会议请假详细
export function getLeave (id) {
  return request({
    url: '/dynamics/leave/' + id,
    method: 'get'
  })
}

// 新增会议请假
export function addLeave (data) {
  return request({
    url: '/dynamics/leave',
    method: 'post',
    data: data
  })
}

// 修改会议请假
export function updateLeave (data) {
  return request({
    url: '/dynamics/leave',
    method: 'put',
    data: data
  })
}

// 删除会议请假
export function delLeave (id) {
  return request({
    url: '/dynamics/leave/' + id,
    method: 'delete'
  })
}



export function examine(data) {
    return request({
        url: '/dynamics/leave/examine',
        method: 'post',
        data
    })
}